import http from '../utils/http';
export const baseURL = 'https://api-haoke-web.itheima.net';
// REACT_APP_URL = https://api-haoke-web.itheima.net
export function reqSwiper() {
    return http.get('/home/swiper')
}
export function reqGroups() {
    return http.get('/home/groups')
}
export function reqNews() {
    return http.get('/home/news')
}
// 获取热门城市的请求
export function getHotCity() {
    return http.get('/area/hot');
}
// 获取所有城市的请求
export function getAllCity() {
    return http.get('/area/city?level=1');
}
// 获取房源列表 条件；情况；环境；身份
export function getHouses() {
    return http.get('/houses/condition', { params: { id: 'AREA|88cff55c-aaa4-e2e0' } });
}

// 获取房源列表
export function getHouseList(params) {
    return http.get('/houses', { params });
}